box: Add a way to get the gadget
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Dec 2015 12:37:52 +0000 (07:37 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Dec 2015 12:37:52 +0000 (07:37 -0500)
This will be used in GtkButtonBox.

gtk/gtkbox.c
gtk/gtkboxprivate.h

index bc9192b839f339439c5b2dc0a06ca511d097e339..a99b4fd9c895e5a3e13add423032b51696cb4873 100644 (file)
@@ -2102,6 +2102,12 @@ gtk_box_init (GtkBox *box)
   _gtk_orientable_set_style_classes (GTK_ORIENTABLE (box));
 }
 
+GtkCssGadget *
+gtk_box_get_gadget (GtkBox *box)
+{
+  return box->priv->gadget;
+}
+
 /**
  * gtk_box_new:
  * @orientation: the box’s orientation.
index 9628d3c306f53586dee71aaf1fc19858716ba619..cd997582da08e044b85b707ffa6eebd566248297 100644 (file)
@@ -20,6 +20,7 @@
 #define __GTK_BOX_PRIVATE_H__
 
 #include "gtkbox.h"
+#include "gtkcssgadgetprivate.h"
 
 G_BEGIN_DECLS
 
@@ -30,6 +31,8 @@ void        _gtk_box_set_spacing_set    (GtkBox         *box,
                                          gboolean        spacing_set);
 GList      *_gtk_box_get_children       (GtkBox         *box);
 
+GtkCssGadget *gtk_box_get_gadget (GtkBox *box);
+
 
 G_END_DECLS